
Build a chat interface in Unity by creating a vertical, scrollable area with discussion bubbles and text mesh pro messages, using content size filter and vertical layout group.
Create a discussion manager in Unity to instantiate and configure discussion bubbles from user input, and implement an auto-scroll for new messages, preparing for future ChatGPT integration.
ChatGPT package URL : https://github.com/RageAgainstThePixel/com.openai.unity
Learn to give ChatGPT context in Unity by initializing a system prompt, managing a chat prompts list, and testing responses in play mode.
Grab the SDK here -> https://developer.oculus.com/downloads/package/oculus-voice-sdk/
Add a copy to clipboard button to the discussion bubble by duplicating the voice button and wiring a copyToClipboard callback to copy the message text.
Learn to implement speech-to-text in Unity with the Oculus voice demo, using a bridge to capture transcripts and send them to ChatGPT via a text input and button triggers.
Set up a Unity UI by creating a dedicated scene, configuring a canvas and panels, and building a main scroll view with a top container and vertical layout.
Learn to build an activity container in Unity UI, configuring a two-pane layout with a text section and a pie chart, using horizontal and vertical layout groups, colors, and autosize.
Implement a roles user interface by creating per-category horizontal scroll views with white text, titles, and responsive padding, enabling role buttons to chat with ChatGPT.
Update the OpenAI UPM library in Unity to version 4.8.7, migrate from chat prompts to messages, and implement system, user, and assistant roles to ensure ChatGPT works.
Learn to manage data in Unity with scriptable objects for a chatgpt-enabled role system, creating role category objects, role data, and a role manager to generate categories and buttons.
Implement a Unity roles manager driven by scriptable objects to organize role categories and UI. Create role category containers and role buttons, configure text, and spawn categories from data.
Learn to configure role containers in Unity by passing role category data, instantiate role container prefabs under a parent, and dynamically create and configure role buttons for ChatGPT integration.
Build a chat panel in Unity, using a chat canvas group to show and hide, and customize the prompt input and chat bubble colors for a clear, engaging experience.
Enhance the Unity chat panel by adding a top container and back button to return to menu, and clear bubbles before sending the first prompt to the discussion manager.
Here is the link for gradlew.bat -> https://github.com/googlesamples/unity-jar-resolver/blob/master/source/AndroidResolver/scripts/gradle-template.zip
Implement rewarded video integration in Unity with IronSource, configure android 12 permissions, initialize the ads manager with your app key, enable test suite, and build an APK for device testing.
Create an overlay no messages panel on the chat UI that appears when messages run out and includes a watch video button, controlled by the UI manager via canvas group.
Link the ads manager to the activity manager to reset messages left when a rewarded video is watched, using a simple method or a versatile, singleton-driven approach with Unity events.
Implement a history manager in Unity to spawn history message containers as prefabs with date and first prompt, and save chat prompts via the discussion manager using json.
If you want to integrate ChatGPT to your Unity Project, you are at the right place.
After finishing this course, you will know how to make calls to the OpenAI API, integrate ChatGPT to your project and setup a Chat Interface.
That’s not it, you’ll be able to accomplish far more than that.
You are going to take the project one step further and add Text-To-Speech & Speech-To-Text to your project, using the Oculus SDK !
After you’ve learnt all of this priceless knowledge, you will Ace Unity’s UI and make an AI Chat App. You will master components such as
Horizontal & Vertical Layout Groups
Scroll View
Button
Image
Layout Element
Content Size Fitter
TextMeshPro
And much more
This will allow you to manage every other UI for your next projects.
On top of that, you will also learn how to save a history of all of the conversations you had with ChatGPT. After learning 2 ways of Saving & Loading Data ;).
The Activity Manager will help you track the user activity. After sending 10 messages (or less if you want), the user will have to watch a video to chat again.
Monetization is an integral part of an app right ? That’s why I decided to show you how simple it is to integrate Unity’s new Ads Mediation system.
You will learn how to setup IronSource & add versatile Rewarded Videos to your app !
Along the way, you will improve your code architecture as you’ll learn about
Actions
Unity Events
The Singleton Pattern
Scriptable Objects
And multiple Quick Tips along the way
So if you think you’re ready to step up as a developer, then grab this course Today, and Enjoy the journey.